package com.example.democlient.network.clientpackets;

import android.app.Activity;
import android.os.Message;

import com.example.democlient.TaskQueryActivity;
import com.example.democlient.network.packet.ClientPacket;

public class CM_TASK_FINISH_RESPONSE extends ClientPacket {

    private int response;
    private static final Class<? extends Activity> calssz = TaskQueryActivity.class;
    public CM_TASK_FINISH_RESPONSE(int opcode) {
        super(opcode);
    }

    @Override
    protected void readImpl() {
    	this.response = readC();
    }

    @Override
    protected void runImpl() {
		Message msg = new Message();
		msg.what=1;
		msg.obj = response;
		super.getApp().getHander(calssz).sendMessage(msg);
    }
}
